package com.yuelife.admin;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication
@MapperScan(basePackages = "com.yuelife.admin.dao")
@ComponentScan(basePackages = {"com.yuelife.admin.service","com.yuelife.admin.controller","com.yuelife.admin.config","com.yuelife.admin.realm"})
@EnableFeignClients //启用openfeign  调用服务
@EnableCaching//开启声名式缓存
public class AdmainApplication {

    public static void main(String[] args) {
        SpringApplication.run(AdmainApplication.class, args);
    }

}
